package com.xy.annotaion.handler.api.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author Dell
 */
@RestController
public class TestController {

    @RequestMapping("/testMono")
    public Mono<String> testMono() {
        return Mono.just("testMono");
    }

    @RequestMapping("/testFlux")
    public Flux<String> testFlux() {
        return Flux.just("testMono");
    }

    @RequestMapping("/testPlain")
    public String testPlain() {
        return "testPlain";
    }

}
